We now have enough working code to plug in the storage and decode and run our program with the test data. Since I am fairly happy with the state behaviour I can dispense with the debug setting and see if the program prints out the message which my patterns represent. The next version of my program is [Exercise 9.2]. When it runs it decodes the characters in the test array and prints them out. Note that I have modified the behaviour of the state machine so that it actually performs the actions rather than just having comments in the appropriate places.

If you load up the program and run it you will find that it prints out the characters which the patterns represent. You can change the test data so that it prints your name if you wish. In real life I would create a test data set which contains every possible character in the alphabet.